package com.jrx.anytxn.transaction.job.interestFile.step;

import com.jrx.anytxn.transaction.entity.TlInterestAccrualLog;
import com.jrx.anytxn.transaction.service.IInterestFileService;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InterFileProcessor implements ItemProcessor<TlInterestAccrualLog, String> {

    @Autowired
    private IInterestFileService interestFileService;

    @Override
    public String process(TlInterestAccrualLog item) throws Exception {

        return interestFileService.createInterFileMessage(item);
    }
}
